package com.study.springboot.SpringBoot_A.service.impl;

import com.study.springboot.SpringBoot_A.bean.UserInfo;
import com.study.springboot.SpringBoot_A.dao.UserInfoRepository;
import com.study.springboot.SpringBoot_A.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 赵超
 * @Description
 * @create 2018-03-31 15:40
 **/
@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    private UserInfoRepository userInfoRepository;

    @Override
    public UserInfo findByUsername(String username) {
        return userInfoRepository.findByUsername(username);
    }
}
